var request = require('request');
var url ='http://api.openweathermap.org/data/2.1/find/name?q=granada';
request(url, function (error, response, body) {
  if (!error && response.statusCode == 200) {
      var json=JSON.parse(body);
	  var cadena="Codigo: "+json.cod;
	  console.log(cadena);
  } else {
      console.log(error);
  }
})